package com.ny.entity;
public class Users {

        private int userId;
        private String username;
        private String password;
        private String phoneNumber;
        private String role;

        // 无参构造函数
        public Users() {
        }

        // 带参构造函数
        public Users(String username, String password, String phoneNumber, String role) {
                this.username = username;
                this.password = password;
                this.phoneNumber = phoneNumber;
                this.role = role;
        }

        // Getter 和 Setter 方法
        public int getUserId() {
                return userId;
        }

        public void setUserId(int userId) {
                this.userId = userId;
        }

        public String getUsername() {
                return username;
        }

        public void setUsername(String username) {
                this.username = username;
        }

        public String getPassword() {
                return password;
        }

        public void setPassword(String password) {
                this.password = password;
        }

        public String getPhoneNumber() {
                return phoneNumber;
        }

        public void setPhoneNumber(String phoneNumber) {
                this.phoneNumber = phoneNumber;
        }

        public String getRole() {
                return role;
        }

        public void setRole(String role) {
                this.role = role;
        }

        @Override
        public String toString() {
                return "Users{" +
                        "userId=" + userId +
                        ", username='" + username + '\'' +
                        ", password='" + password + '\'' +
                        ", phoneNumber='" + phoneNumber + '\'' +
                        ", role='" + role + '\'' +
                        '}';
        }
}